package doyouknow.group.CnAndZhb.controller;

import doyouknow.group.CnAndZhb.entity.TbSmartdevice;
import doyouknow.group.CnAndZhb.service.TbSmartdeviceService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TbSmartdevice)表控制层
 *
 * @author cn
 * @since 2020-11-03 21:05:02
 */
@RestController
@RequestMapping("tbSmartdevice")
public class TbSmartdeviceController {
    /**
     * 服务对象
     */
    @Resource
    private TbSmartdeviceService tbSmartdeviceService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TbSmartdevice selectOne(Integer id) {
        return this.tbSmartdeviceService.queryById(id);
    }

}